/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.DesignPatterns.structural.adapter;

/**
 *
 * @author Nashief
 */
public class TempretureClassReporter extends CelciusReporter implements TempretureInfo {

    @Override
    public double getTempretureInf() {
       return cToF(temperatureInc);
    }

    @Override
    public void setTempretureInf(double tempretureInf) {
        this.temperatureInc=fToC(tempretureInf);
    }

    @Override
    public double getTempretureInc() {
         return temperatureInc;
    }

    @Override
    public void setTempretureInc(double tempretureInc) {
        this.temperatureInc = temperatureInc;
    } 
    private double fToC(double f){
    return ((f-32)*5/9);
    } 
    private double cToF(double c){
    return ((c*9/5)+32);
    }
    
}
